package com.liyk.shop.utils;

import org.springframework.util.DigestUtils;

/**
 * @program: springcloud-shop
 * @description:
 * @author: lyk
 * @create: 2019-12-12 17:16
 **/
public class MD5Utils {

    public static final String SALT = "product-salt";

    public static String convertMd5Str(String source) {
        String md5 = DigestUtils.md5DigestAsHex((source + SALT).getBytes());
        return md5;
    }

}
